﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MotelClient.Motel" %>

<%--<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Map Space</title>
    <link href="/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/css/jquery.fancybox.css?v=2.0.6" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAulfXXNyNhXqZaHzRpmSqYubQJz_hwVV4&sensor=true"></script>
    <script src="/Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.fancybox.pack.js?v=2.0.6" type="text/javascript"></script>
    <script src="/Scripts/gmap3.min.js" type="text/javascript"></script>    
    <script src="/Scripts/motel_maps_libraries.js" type="text/javascript"></script>
    <script src="/Scripts/motel_utilities_scripts.js" type="text/javascript"></script>
    <script src="/Scripts/motel_maps_ext_map3_scripts.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.msgBox.js" type="text/javascript"></script>
    <link href="/css/msgBoxLight.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <script type="text/javascript">        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        } (document, 'script', 'facebook-jssdk'));</script>
    <form id="form1" runat="server">
    <div class="topmenu">
        <div class="left">
            <div class="leftlogo">
                <a href="#">
                    <img src="Image/logo.jpg" alt="logo" /></a>
            </div>
            <div class="center">
                <div class="cenleft">
                    <select id="cbDistrictSearchAddress" class="text">
                    </select>
                    <select id="cbWardSearchAddress" class="text">
                    </select>
                </div>
                <div class="search">
                    <input id="btnsearch" class="test111" type="button" />
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="right">
            <div class="loginform">
                <%if ((string)Session["IsLogin"] != "Login")
                  { %>
                <div class="NotLoggedIn" runat="server">
                    <div class="OAth">
                        <a href="<%= ResolveUrl("~/Default.aspx/requestToken/google/") %>">
                            <img src="<%= ResolveUrl("~/Image/googleOAuth.png") %>" alt="" title="Log in using your Google Account" /></a>
                        <a href="<%= ResolveUrl("~/Default.aspx/requestToken/yahoo/") %>">
                            <img src="<%= ResolveUrl("~/Image/yahooOAuth.png") %>" alt="" title="Log in using your Yahoo! Account" /></a>
                        <!--
                        <a href="<%//ResolveUrl("~/Default.aspx/requestToken/facebook/") %>">
                            <img src="<%// ResolveUrl("~/Image/facebookOAuth.png") %>" alt="" title="Log in using your Facebook Account" /></a>
                        -->
                    </div>
                </div>
                <% } %>
                <% else
                  { %>
                <div class="LoggedIn" runat="server">
                    <div class="Profile">
                        <%= EmailA %>
                        |
                        <%--<img src="<%= ResolveUrl("~/Image/yahooOAuth.png") %>" alt="" title="Profile" />   --%>
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Log Out</asp:LinkButton>
                    </div>
                </div>
                <% } %>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="bottom" />
        <div class="leftmenu">
            <div class="nav">
                <div class="show_all">
                    <a id="btnShow" href="#" title="Show all Motels">Show all</a>
                </div>
                <div class="add">
                    <a class="fancybox" href="#addressDetail" title="Add new address" shape="rect">Add Address</a>
                    <!--<div class="fb-comments" data-href="http://example.com" data-num-posts="2" data-width="300"></div>-->
                </div>
                <div class="fb-comments" data-href="http://example.com" data-num-posts="2" data-width="300">
                </div>
            </div>
            <div class="content" id="map_canvas">
            </div>
        </div>
        <div class="info" style="display: none;">
            <h3>
                {0}</h3>
            <table>
                <tr>
                    <td>
                        Vĩ độ :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="txtLat" type='text' value='{1}' />
                    </td>
                </tr>
                <tr>
                    <td>
                        Kinh độ :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="txtLog" type='text' value='{2}' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <a id='upMarker' href="#" title='{3}'>Cập nhật</a>
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <a id='delMarker' href="#" title='{4}'>Xóa</a>
                    </td>
                </tr>
            </table>
        </div>
        <div id="comment" style="width: 300px; display: none;">
            <div class="fb-comments" data-href="http://example.com" data-num-posts="2" data-width="300">
            </div>
        </div>
        <div id="addressDetail" style="width: 400px; display: none;">
            <h3>
                New Address</h3>
            <table style="width: 100%;">
                <tr>
                    <td>
                        Số nhà :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="txtNumAddress" type="text" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên đường :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="txtRoadAddress" type="text" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Quận :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <select id="cbDistrictAddress">
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        Phường :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <select id="cbWardAddress">
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        Vĩ độ :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="txtLatAddress" type="text" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Kinh độ :
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="txtLogAddress" type="text" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <span id="msgAddAddress" style="color: Red"></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input id="btnSave" type="button" value="Save" />
                    </td>
                    <td>
                        &nbsp
                    </td>
                    <td>
                        <input id="btnCancel" type="button" value="Cancel" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
